# Jack Green ,21  ;  Mike Mos, 9;
info1 = input('请输入学生的信息： 姓名，年龄: ')
if ',' in info1 and ';' in info1:
    if info1.count(',') == info1.count(';'):
        temp = info1.split(';')
        for one in temp:
            if one != '':
                name,age = one.split(',')
                name = name.strip()
                age = int(age.strip())
                print('{:<20}:{:>02}'.format(name,age))
    else:
        print('您输入的格式不对不--，与；数量不一致')
else:
    print('您的输入格式不对！')


# newlist = []   #创建列表
# def mysort(inlist):  #定义函数lint
#     while len(inlist) > 0:
#         mindate = inlist[0]  #假设mindate是最小的数
#         mindex = 0
#         indx = 0
#         for one in inlist: #one历遍inist
#             # print(one)
#             if mindate > one:  #如果mindate大于one
#                 mindate = one  #则将one的值赋给 mindate
#                 mindex = indx   #将下标也赋给mindex
#             indx = indx + 1    #下标加1
#         inlist.pop(mindex)    #删除最小值
#         newlist.append(mindate) #将删最小的值加到newlist中
#     return newlist
# print(mysort([8,7,6,5]))


a =input('请输入学生信息：')
# a = 'lili,  20; tom,  25;'
list = a.split(';')
# print(list)
for one in list:
    # print(one)
    if one == '':
        continue
    name,age = one.split(',')
    # print(one1)
    name = name.strip()
    # print(name)
    age = int(age.strip())
    print('{:<20},{:02}'.format(name,age))





















